<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id" class="form-control"  type="text" value="{$row.id|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control"  type="number" value="{$row.price|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单时长(分):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-minutes" class="form-control"  type="number" value="{$row.minutes|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">支付时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" class="form-control"  type="text" value="{$row.pay_time|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">使用时长(分):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-used_fen" class="form-control"  type="number" value="{$row.used_fen|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">已使用金额{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-used_price" class="form-control"  type="number" value="{$row.used_price|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款金额{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_price" class="form-control"  type="number" name="row[refund_price]" value="{$row.refund_price|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款方式:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fangshi" class="form-control"  type="text"  value="原路退回" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款原因:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_reason" class="form-control"  type="text"  value="{$row.refund_reason|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退款备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_notes" class="form-control"  type="text"  value="{$row.refund_notes|htmlentities}" readonly>
        </div>
    </div>

    {if $row.refund_status eq 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[refund_status]', ['3'=>__('通过'), '2'=>__('驳回')])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('驳回原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-msg" class="form-control " rows="5" name="row[refund_reject]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>
